<?php

abstract class Soul_Db_Sql_Base{

	protected $parameters = array();

	public function addParameter($name, $value){
		$this->parameters[$name] = $value;
		return $this;
	}
    
    public function getParameters(){
        return $this->parameters;
    }
    
    public function resetParameter(){
        $this->parameters = array();
        return $this;
    }
    
	protected function addQualifier($field){
		if(!empty($field) && $field[0] != '`' && $field[strlen($field) - 1] != '`'){
			return '`'.$field.'`';
		}
		return $field;
	}    
}